<template>
    <div>
        <!-- seach区域 -->
        <div class="seach">
            <span class="span-top">
                <span class="seachCSC">
                    {{$t('systemtyp')}}
                    <el-select v-model="staMgrForm.systemType" :placeholder="$t('plsset')" size="mini">
                        <el-option :label="'-' + $t('plsset') + '-'" :value="null"></el-option>
                    </el-select>
                </span>
                <span class="seachCSC">
                    {{$t('resourcetype')}}
                    <el-select v-model="staMgrForm.resourType" :placeholder="$t('plsset')" size="mini">
                        <el-option :label="'-' + $t('plsset') + '-'" :value="null"></el-option>
                    </el-select>
                </span>
            </span>
            <span class="span-bottom">
                <span class="seachCSC">
                    {{$t('resourcestate')}}
                    <el-input v-model.trim="staMgrForm.resourState" :placeholder="$t('plsipt')" size="mini"></el-input>
                </span>
            </span>
            <div class="NOUS">
                <el-button type="primary" @click="seach" size="mini" v-preventReClick>{{$t('qury')}}</el-button>
                <el-button @click="add" size="mini" v-preventReClick>{{$t('add')}}</el-button>
            </div>
        </div>
        <!-- 内容区域 -->
        <el-card class="cardBox">
            <el-table border style="width: 100%" :data="staMgrTab">
                <el-table-column type="index" :label="$t('sernum')">
                </el-table-column>
                <el-table-column prop="settleSerialNo" :label="$t('systemtyp')">
                </el-table-column>
                <el-table-column prop="payOrderNo" :label="$t('resourcetype')">
                </el-table-column>
                <el-table-column prop="merOrderNo" :label="$t('resourcestate')">
                </el-table-column>
                <el-table-column :label="$t('opratn')" fixed="right" width="100">
                    <template slot-scope="scope">
                        <el-link type="primary" @click="handlestaMgr(scope.row)">{{$t('mdfy')}}</el-link>
                        <el-link type="primary" @click="details(scope.row)">{{$t('detls')}}</el-link>
                    </template>
                </el-table-column>
            </el-table>
            <!-- 分页 -->
            <el-pagination
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page="staMgrForm.pageNum"
                :page-sizes="[10, 15, 20, 30]"
                :page-size="staMgrForm.pageSize"
                layout="total, sizes, prev, pager, next, jumper"
                :total="total">
            </el-pagination>
        </el-card>
    </div>
</template>

<script>
export default {
    data () {
        return {
            total: 0,
            staMgrForm: {
                systemType: null,
                resourType: null,
                resourState: null,
                pageNum: 1,
                pageSize: 10
            },
            staMgrTab: []
        }
    },
    methods: {
        seach () {},
        add () {},
        handlestaMgr () {},
        details () {},
        handleSizeChange (newSize) {
            this.clarifyForm.pageSize = newSize
            this.getCardBinList()
        },
        // 监听总页数变化
        handleCurrentChange (newNum) {
            this.clarifyForm.pageNum = newNum
            this.getCardBinList()
        }
    }
}
</script>

<style lang="less" scoped>
@import './staMgr.less';
</style>
